package com.hjh.mode.composite;

public class LeafComp extends  WindowComponent{


    public LeafComp(String name){
        super();
        this.name = name;
    }

    @Override
    public void print() {
        System.out.println("print "+name);
    }
}
